package com.mxf.code.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.neo4j.ogm.annotation.NodeEntity;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Property;

/**
 * @author mxf
 * @version 1.0
 * @description: TODO
 * @date 2023/5/6
 */
@Data
@NodeEntity("Person")
@AllArgsConstructor
public class PersonFriendResponse {

    @Id
    private Long id;

    @Property("personName")
    private String personName;

    @Property("friendName")
    private String friendName;

    public PersonFriendResponse() {}

    public PersonFriendResponse(String personName, String friendName) {
        this.personName = personName;
        this.friendName = friendName;
    }
}

